﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using NHibernate.Mappings;

namespace Apollo.Modules.Salary
{
    [NHibernateEntity(Table = "EmployeeComponentDefinitions")]
    public class EmployeeComponentDefinition : IHistory<EmployeeComponentDefinition>, ITrackable
    {
        public EmployeeComponentDefinition() { }

        [PrimaryKey]
        public virtual int Id { get; set; }

        [Property]
        public virtual string Name { get; set; }
        
        [Property]
        public virtual string Code { get; set; }



        [BelongsTo(Column = "ID_BelonsTo_EmployeeComponentDefinition")]
        public virtual EmployeeComponentDefinition BelongsTo { get; set; }

        [Property]
        public virtual DateTime EffectiveDate { get; set; }

        [Property]
        public virtual DateTime LearnDate { get; set; }

        [Property]
        public virtual State State { get; set; }



        [Property]
        public virtual DateTime InsertDate { get; set; }

        [Property]
        public virtual string InsertBy { get; set; }

        [Property]
        public virtual DateTime? ModifiedDate { get; set; }

        [Property]
        public virtual string ModifiedBy { get; set; }
    }
}
